package com.wo.cloud.tenant.props;

import com.wo.cloud.core.constant.TenantConstant;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

import java.util.ArrayList;
import java.util.List;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/4/11 16:29
 * Description:
 */

@Data
@RefreshScope
@ConfigurationProperties(prefix = "mybatis.tenant")
public class TenantConfigProperties {

    // 租户字段
    private String column = TenantConstant.TENANT_COLUMN;

    // 不进行租户过滤的 多数据表集合
    private List<String> ignoreTables = new ArrayList<>();
}
